<?php

//Load all classes of the datamodel
include_once "BabiliLanguage.php";
include_once "BabiliLoadDataModel.php";
include_once "BabiliPermission.php";
include_once "BabiliProduct.php";
include_once "BabiliTranslation.php";
include_once "BabiliUserPreferences.php";
include_once "BabiliUserSystemExtended.php";

//Load our DB interface
include_once "BabiliDBCommunicator.php";

//for communication with database
$db = new BabiliDBCommunicator();

//load languages
global $babili_language, $babili_users, $babili_permission, $babili_product;

$babili_language = new BabiliLanguage($db);

$babili_users = new BabiliUserSystemExtended($db);

$babili_permission= new BabiliPermission($db);

$babili_product = new BabiliProduct($db);

$babili_translation = new BabiliTranslation($db);